module.exports = {
	/**
	 * 本页面功能已作废，仅为兼容老版本保留此文件
	 */
	main: async (event) => {
		let { data = {}, userInfo, util, filterResponse, originalParam } = event;
		let { customUtil, uniID, config, pubFun, vk, db, _ } = util;
		let { uid } = data;
		let res = { code: 0, msg: 'ok' };
		// 业务逻辑开始-----------------------------------------------------------
		// 获取前端传过来的参数
		let {
			_id,
			ad_id,
			desc,
			tfurl,
			agentId,
			appid,
			tv_id,
			tv_name,
			series,
			follow,
			gzhId,
			path,
			tfid,
			platform
		} = data;
		// 参数验证开始
		if (vk.pubfn.isNull(_id)) return { code: -1, msg: 'id不能为空' };
		
		
		// 参数验证结束
		let dbName = "a_dy_tfurl"; // 表名
		// 执行 数据库 updateById 命令
		await vk.baseDao.updateById({
			dbName,
			id:_id,
			dataJson:{
				ad_id,
				desc,
				tfurl,
				agentId,
				appid,
				tv_id,
				tv_name,
				series,
				follow,
				gzhId,
				path,
				tfid,
				platform
			}
		});
		// 业务逻辑结束-----------------------------------------------------------
		return res;
	}

}
